<?php

error_reporting(E_ALL);
ini_set("display_errors", 1);


echo "<div >";

echo form_fieldset();

echo form_hidden("h_tipe", "");

echo form_hidden("h_id", "");

echo "<div class='form-slide'>";


$arrBio = $ctlArrBio;
//form3
echo "<div class='view_bio form'>";
echo heading($arrBio['nama'], "2");
echo "<div class='msg'></div>";


echo "<div class='c_img'>";
$imgData = array (
	'src' => $arrBio['photo'],
    'alt' => $arrBio['nama'],
    'class' => 'prof_images',
    'width' => '200px',
    'height' => '200px',
    'title' => 'That was quite a night',
    'rel' => 'lightbox',
);
echo img($imgData);
echo "</div>";


echo "<div class='data'>";
echo "<div>";
echo form_label("Tempat Lahir : ");
echo '<span >' . $arrBio['tempat_lahir'] . '</span>';
echo "</div>";

echo "<div>";
echo form_label("Tanggal Lahir : ");
echo "<span >" . $arrBio['tanggal_lahir'] . "</span>";
echo "</div>";

$jk = array (
	'L' => 'laki-laki',
	'P' => 'perempuan'
);
echo "<div>";
echo form_label("Jenis Kelamin : ");
echo "<span > ". $jk[$arrBio['jenis_kelamin']] . "</span>";
echo "</div>";

echo "</div>";
//end of data

echo "<div class='contact'>";

if (trim($arrBio['email']) != "") {
    echo "<div>";
    echo form_label("email : ");
    echo '<span >' . $arrBio['email'] . '</span>';
    echo "</div>";
}

if (trim($arrBio['telp']) != "") {
    echo "<div>";
    echo form_label("telp. : ");
    echo "<span >" . $arrBio['telp'] . "</span>";
    echo "</div>";
}

if (trim($arrBio['facebook']) != "") {
    echo "<div>";
    
    echo "<span >" . $arrBio['facebook'] . "</span>";
    echo "</div>";    
}

if (trim($arrBio['twitter']) != "") {
    echo "<div>";
    
    echo "<span > ". $arrBio['twitter'] . "</span>";
    echo "</div>";    
}


echo "</div>";


echo "</div>";
//end form3

echo "</div>";

echo form_fieldset_close();

echo form_button("back", "back", "class='prev'");
echo "</div>";
